<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%-- <isperp:taskView readonly="true">
	<jsp:body> --%>
<div class="box no-border">
	<div class="header">
		<h3>&nbsp;&nbsp;任务信息</h3>
	</div>
	<table class="form-table">
		<tbody>
			<tr>
				<td class="td1">任务编号：</td>
				<td class="td2">${model.code }</td>
			</tr>
			<tr>
				<td class="td1">任务名称：</td>
				<td class="td2">${model.name }</td>
			</tr>
			<%-- <tr>
				<td class="td1">任务分类：</td>
				<td class="td2">${model.taskCategoryName }</td>
			</tr> --%>
			<%-- <tr>
				<td class="td1">任务来源：</td>
				<td class="td2">${model.source }</td>
			</tr> --%>
			<tr>
				<td class="td1">任务类别：</td>
				<td class="td2">${model.taskType }</td>
			</tr>

			<tr>
				<td class="td1">优先级：</td>
				<td class="td2">${model.priority }</td>
			</tr>
			<tr>
				<td class="td1">计划执行时间：</td>
				<td class="td2">${model.planStartTime}至${model.planEndTime}</td>
			</tr>
			<%-- 	<tr>
				<td class="td1">计划工时(h)：</td>
				<td class="td2">${model.plan_times }</td>
			</tr> --%>
			<tr>
				<td class="td1">任务目标：</td>
				<td class="td2">${model.target }</td>
			</tr>
			<tr>
				<td class="td1">任务内容：</td>
				<td class="td2">${model.content }</td>
			</tr>
			<tr>
				<td class="td1">交付标准：</td>
				<td class="td2">${model.deliverables }</td>
			</tr>
		</tbody>
	</table>
</div>

<div class="box no-border">
	<div class="header">
		<h3>&nbsp;&nbsp;任务分派</h3>
	</div>
	<form:form id="taskHandleForm" commandName="model" cssClass="validate"
		action="task/task/save">
		<form:hidden path="id" />

		<table class="form-table">
			<tbody>
			   <tr>
					<td class="td1">负责人：</td>
					<td class="td2"><form:hidden path="planPrincipalId" /> <isperp:departmentUser
							id="planPrincipalIdSelector"
							displayValue="${model.planPrincipalName }"
							valueControlId="planPrincipalId" name="planPrincipalName"></isperp:departmentUser>
					</td>
				</tr>
			   
				<%-- <tr>
					<td class="td1">是否完成：</td>
					<td class="td2"><form:radiobutton value="1" path="finished" 
							label="是" /> <form:radiobutton value="0" path="finished"
							label="否" /></td>
				</tr>
				<tr>
					<td class="td1">执行时间（起）：</td>
					<td class="td2"><form:input path="actStartTime"
							type="dateTime" />
					</td>
				</tr>
				<tr>
					<td class="td1">执行时间（止）：</td>
					<td class="td2"><form:input path="actEndTime" type="dateTime" />
					</td>
				</tr>

				<tr>
					<td class="td1">处理情况：</td>
					<td class="td2"><form:textarea path="handleDesc" />
					</td>
				</tr> --%>

				<tr>
					<td class="td1">附件：</td>
					<td class="td2"><isperp:uploader sourceId="${model.id }"
							id="taskFiles"></isperp:uploader></td>
				</tr>
			</tbody>
		</table>


	</form:form>
</div>

<div id="taskCi">
	<isperp:taskInspectCi
							relationId="${model.id }" relationType="inspectCiInfo"
							readonly="true"></isperp:taskInspectCi>
</div>

<%-- </jsp:body>
</isperp:taskView> acceptEdit--%>

<isperp:buttonList>
	<isperp:processButtons businessKey="${model.id }"
		formId="taskHandleForm" processKey="taskProcess"
		processId="${model.processId }"></isperp:processButtons>
</isperp:buttonList>
